from task.models import *
from django.contrib import admin
from django.contrib import databrowse



class TaskAdmin(admin.ModelAdmin):
    list_display = ('name', 'status', 'priority', 'scheduled_for' ,'note')
    list_filter = ('status', 'category',  'assigned_to', 'priority', 'created', 'completed', 'scheduled_for')
    search_fields = ['category__name', 'name', 'note'] 
    
class TaskCategoryAdmin(admin.ModelAdmin):
    list_display = ('name',  'description')
    list_filter = ('name',  'description')
    search_fields = ['name',  'description'] 
    
admin.site.register(TaskCategory, TaskCategoryAdmin)
admin.site.register(Task, TaskAdmin)


